package com.yourcompany.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yourcompany.api.dto.CreditPayDTO;
import com.yourcompany.api.dto.OrderCreateDTO;
import com.yourcompany.api.dto.OrderPayDTO;
import com.yourcompany.api.entity.Order;

public interface OrderService extends IService<Order> {
    
    /**
     * 创建订单
     */
    Order createOrder(OrderCreateDTO createDTO);
    
    /**
     * 支付订单
     */
    String payOrder(OrderPayDTO payDTO);
    
    /**
     * 使用先充后付支付订单
     */
    String payOrderWithCredit(CreditPayDTO creditPayDTO);
    
    /**
     * 取消订单
     */
    void cancelOrder(Long orderId);
} 